#ifndef MOVEABLEWIDGET_H
#define MOVEABLEWIDGET_H

#include <QWidget>

class MoveableWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MoveableWidget(QWidget *parent = 0);
    ~MoveableWidget();

protected:
    virtual void paintEvent(QPaintEvent *event);
    virtual bool event(QEvent *e);


    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mouseReleaseEvent(QMouseEvent *event);


private:
    bool m_bCanMove;
    QPoint m_pointClickPos;

signals:

public slots:
};

#endif // MOVEABLEWIDGET_H
